package com.aurora.demo.repository;

import com.aurora.demo.entity.Thumb;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ThumbRepository extends MongoRepository<Thumb, String> {

    @Query("{ 'name' : ?0 }")
    Thumb findByName(String name);
}
